package com.xiaoshu.thread;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 
 * 
 * 功能说明：
 * 
 * ThreadPoolsProperties
 * 
 * Original Author: deane.jia,2017年7月18日下午9:53:29
 * 
 * Copyright (C)2014-2017 小树盛凯科技  All rights reserved.
 */
@Component
@ConfigurationProperties(prefix = "threadpools")
@PropertySource("threadpools.properties")
public class ThreadPoolsProperties {

	private int corePoolSize;

	private int maxPoolSize;

	private int queueCapacity;

	private int keepAliveSeconds;

	public int getCorePoolSize() {
		return corePoolSize;
	}

	public void setCorePoolSize(int corePoolSize) {
		this.corePoolSize = corePoolSize;
	}

	public int getMaxPoolSize() {
		return maxPoolSize;
	}

	public void setMaxPoolSize(int maxPoolSize) {
		this.maxPoolSize = maxPoolSize;
	}

	public int getQueueCapacity() {
		return queueCapacity;
	}

	public void setQueueCapacity(int queueCapacity) {
		this.queueCapacity = queueCapacity;
	}

	public int getKeepAliveSeconds() {
		return keepAliveSeconds;
	}

	public void setKeepAliveSeconds(int keepAliveSeconds) {
		this.keepAliveSeconds = keepAliveSeconds;
	}

}
